Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed duplicate moons #158

Merged
merged 3 commits into from
Jun 28, 2024
Merged

fixed duplicate moons #158

merged 3 commits into from
Jun 28, 2024

Conversation

capetillo
Copy link
Contributor

FIX: Duplicate moons

Background:
Wayne brought up the issue where the lunar bands weren't showing up (fixed now) and the moon icons were duplicated.

Implementation:
In the function dayRender, I've added a query selector that finds the header cell (i.e. where we actually want the moon icons to render). Then if that exists, I create moonIconDataAttr which is unique to each date. Then I look for other existing moon icons and remove them. Lastly, I create the moon icon and append it to the header cell.

VISUALS

Before: duplicate moons
Screenshot 2024-06-28 at 2 17 05 PM

After: one moon per column
Screenshot 2024-06-28 at 2 16 34 PM

@capetillo capetillo requested review from mgdaily and LTDakin June 28, 2024 21:22
Copy link
Contributor

@mgdaily mgdaily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay!

@capetillo capetillo merged commit 2ca35c1 into dev Jun 28, 2024
1 check passed
@capetillo capetillo deleted the fix/display-moonphases branch June 28, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants